import { IsString, IsNotEmpty } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class LoginByPasswordDto {
    @ApiProperty()
    @IsString()
    @IsNotEmpty({ message: 'loginUsername 不能为空' })
    readonly loginUsername: string;
    @ApiProperty()
    @IsString()
    @IsNotEmpty({ message: 'password 不能为空' })
    readonly password: string;
}